// $Id: jt.h 4 2008-09-08 18:17:41Z longerdev $

/*
Copyright (C) 2008 Longer <longerdev@gmail.com>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef JT_H
#define JT_H

#include <iostream>
#include <fstream>
#include <unistd.h>
#include <signal.h>
#include <syslog.h>
#include "jabber.h"
#include "config.h"

using namespace std;

class JT{
	public:
		JT();
		~JT();

		int wr_pid();
		//pid_t r_pid();
		int is_lock();

		void init(const std::string sName);
	private:
		std::string pid_path;
		bool imDaemon;
		Config conf;
};

#endif

